package com.org.platform.support.conponents.request.repeat;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author duheng
 * @Date 2021/11/17 8:42
 */
@Inherited
@Documented
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface RequestRepeatCheck {

	String keyPrefix() default "keyPrefix"; // 缓存key前缀

	int timeoutSeconds() default 10; // 超时时长

	String requestKeyType() default "param"; // param,body,request

	String requestKeyName() default "name";
}
